home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / git-4.3 / git-4 / git-4.3.11 / mkvcs < prev    next >
Encoding:
Text File  |  1995-10-30  |  404 b   |  21 lines

  1. #!/bin/sh
  2.  
  3. # Check for Linux
  4. if test `uname` != Linux; then
  5.     echo You are not running Linux
  6.     echo This is the result of 'uname -a' on this machine:
  7.     uname -a
  8.     echo mkvcs failed
  9.     exit 1
  10. fi
  11.  
  12. # Create /dev/vcsX and /dev/vcsaX.
  13. for n in 0 1 2 3 4 5 6 7 8; do
  14.     mknod --mode=0666 /dev/vcs$n c 7 $n
  15.     mknod --mode=0666 /dev/vcsa$n c 7 `expr $n + 128`
  16. done
  17.  
  18. chown root.tty /dev/vcs[0-8] /dev/vcsa[0-8]
  19.  
  20. echo done
  21.